package com.java.day04.arr;

public class practise01 {

    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5};
        int[] arr2 = new int[arr1.length+5];
//        int[] arr2 = new int[10];

        copyArr(arr1,arr2);

        ArrUtils.printArrInt(arr2);
        //
    }
    /**
     *
     * @param arr1 原数组
     * @param arr2  新数组
     */
    public static void copyArr(int[] arr1,int[] arr2){
        for (int i = 0; i < arr1.length; i++) {
            arr2[i] = arr1[i];
        }
    }

}
